import json

from config import BASE_DIR


def read_json(filename):
    with open(filename, 'r', encoding='utf-8') as f:
        json_data = json.load(f)
        login_list = []
        for data in json_data:
            tem = tuple(data.values())
            login_list.append(tem)

        return login_list


if __name__ == '__main__':
    filename = BASE_DIR+"/data/login_data.json"
    res = read_json(filename)
    print(res)